package cn.tedu.mall.product.webapi.service.impl.front;

import cn.tedu.mall.common.pojo.product.vo.CategoryStandardVO;
import cn.tedu.mall.product.service.front.IForFrontCategoryService;
import cn.tedu.mall.product.webapi.mapper.CategoryMapper;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
//spring 框架可以实现DubboService的扫描
@DubboService
@Slf4j
public class ForFrontCategoryServiceImpl implements IForFrontCategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override public List<CategoryStandardVO> getAllCategories() {
        return categoryMapper.selectAllCategories();
    }
}
